package com.yejiarong.weather.agent.common.bridge;

import com.yejiarong.weather.agent.bean.dto.CountyWeatherDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author YeJR
 */
@FeignClient(name = "WeatherPythonService", url = "http://192.168.8.9:7000", contextId = "weatherPythonService")
public interface IWeatherPythonService {

    @GetMapping(value = "/weather")
    CountyWeatherDto getCountyWeather(@RequestParam Map<String, String> params);

}
